package cnpm02.j2ee.group3.logic.dao.impl;

import javax.ejb.Local;

import cnpm02.j2ee.group3.logic.dao.generic.AbstractTranslationEntityDao;
import cnpm02.j2ee.group3.model.NationalityTranslation;

/**
 * Dao for {@link NationalityTranslation}
 * @author BINH
 * @version 1.0
 */
@Local
public interface NationalityTranslationDao extends
		AbstractTranslationEntityDao<NationalityTranslation> {
	final String COMPONENT_NAME = "nationalityTranslationDao";
	final String SELECT_ALL_QUERY = "from NationalityTranslation";
	final String SELECT_ALL_BY_LOCALE_QUERY = "from NationalityTranslation nt where nt.supportedLanguage = :supportedLanguage order by nt.translation";
	final String SELECT_ENTITY_BY_LOCALE_QUERY = "from NationalityTranslation nt where nt.nationality = :nationality and nt.supportedLanguage = :supportedLanguage";
}
